package com.yaorange.nongjt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

/**
 * 打印机序列号认证情况对象 njt_serial_auth
 * 
 * @author wei
 * @date 2025-03-01
 */
public class NjtSerialAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 打印机序列号ID */
    @Excel(name = "打印机序列号ID")
    private Long serialId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date authTime;

    /** MAC地址 */
    @Excel(name = "MAC地址")
    private String macAddress;

    /** 认证状态 */
    @Excel(name = "认证状态")
    private Integer cerStatus;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private Integer useStatus;

    // 新增字段
    @Excel(name = "注册时间")
    private Date registerTime;

    @Excel(name = "公司名称")
    private String companyName;

    @Excel(name = "手机号码")
    private String phoneNumber;

    @Excel(name = "法人代表姓名")
    private String legalPersonName;

    @Excel(name = "省份")
    private String province;

    @Excel(name = "城市")
    private String city;

    @Excel(name = "区域")
    private String area;

    @Excel(name = "国家")
    private String country;

    @Excel(name = "详细地址")
    private String detailAddress;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialId(Long serialId) 
    {
        this.serialId = serialId;
    }

    public Long getSerialId() 
    {
        return serialId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAuthTime(Date authTime) 
    {
        this.authTime = authTime;
    }

    public Date getAuthTime() 
    {
        return authTime;
    }
    public void setMacAddress(String macAddress) 
    {
        this.macAddress = macAddress;
    }

    public String getMacAddress() 
    {
        return macAddress;
    }
    public void setCerStatus(Integer cerStatus) 
    {
        this.cerStatus = cerStatus;
    }

    public Integer getCerStatus() 
    {
        return cerStatus;
    }
    public void setUseStatus(Integer useStatus) 
    {
        this.useStatus = useStatus;
    }

    public Integer getUseStatus() 
    {
        return useStatus;
    }

    // 新增getter和setter方法
    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialId", getSerialId())
            .append("userId", getUserId())
            .append("authTime", getAuthTime())
            .append("macAddress", getMacAddress())
            .append("cerStatus", getCerStatus())
            .append("useStatus", getUseStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            // 新增字段
            .append("registerTime", getRegisterTime())
            .append("companyName", getCompanyName())
            .append("phoneNumber", getPhoneNumber())
            .append("legalPersonName", getLegalPersonName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("country", getCountry())
            .append("detailAddress", getDetailAddress())
            .toString();
    }
}